import math
class Point:
    def __init__(self,x=0,y=0):
        self.x=x
        self.y=y
# 计算两点之间的欧几里得距离
def euclidean_distance(p1,p2):
    return math.sqrt((p1.x-p2.x)**2+(p1.y-p2.y)**2)

# 计算两点之间的曼哈顿距离
def manhattan_distance(p1,p2):
    return abs(p1.x-p2.x)+abs(p1.y-p2.y)

# 测试样例
p1=Point(0,4)
p2=Point(3,4)

print("欧几里得距离",euclidean_distance(p1,p2))
print("曼哈顿距离：",manhattan_distance(p1,p2))